package com.hyfrogx.modules.manage.entity.role;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("hy_role")
public class Role implements Serializable{

	private static final long serialVersionUID = 1L;

	@TableId
	private Integer rid;

    @NotNull(message="角色名不能为空")
    private String name;
    @NotNull(message="角色等级不能为空")
    private Integer grade;

    private Integer uid;

    private String remark;

    private Date createdate;

    private Date updatedate;

    private Integer status;

    private Integer num;

    private String username;

}
